/*
 * Ejercicio realizado por Francisco Gonzalez-Armijo Riádigos
 * para la prueba de seleccion de http://www.nomasystems.es
 */

package es.kuassivi.android.cd;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import es.kuassivi.android.cd.business.CustomCompanyREST;

/**
 * Iniciamos la aplicacion
 * 
 * @author kuassivi <a href="mailto:kuassivi@gmail.com">kuassivi@gmail.com</a>
 * @since 0.1
 */
public class MainActivity extends Activity
{
	
	public static final String TAG = "MainActivity";
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
    	Log.v(TAG, "Activity State: onCreate()");
    	
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.main);
        
        loadCompaniesList();
    }
    
    /**
     * Cargamos el listado de compañias en la vista
     */
    private void loadCompaniesList()
    {
    	CustomCompanyREST companyRest = new CustomCompanyREST(this);
    	companyRest.loadCompanies();
    }
	
}